<template>
  <div class="shop">
    <div class="title">
      <div class="tit">{{ title || "店铺街" }}</div>
      <div class="more">
        <a @click="$router.push({ name: 'ShopStreet' })">
          更多<icon name="iconxiangyou" size="16" />
        </a>
      </div>
    </div>
    <div class="shop-list">
      <shop-item1
        :shop="item"
        v-for="(item, index) in data.recommend_shop"
        :key="index"
      />
    </div>
  </div>
</template>

<script>
import ShopItem1 from "@/components/ShopItem/ShopItem1.vue";
export default {
  name: "Shop",
  components: { ShopItem1 },
  props: {
    title: String,
    data: Object,
  },
};
</script>

<style lang="scss" scoped>
.shop {
  max-width: 1200px;
  margin: 0 auto 40px;
  .title {
    height: 33px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 26px;
    .tit {
      font-size: 24px;
      font-weight: 600;
      color: #333333;
      line-height: 33px;
      padding-right: 40px;
    }
    .link {
      a {
        font-size: 16px;
        font-weight: 400;
        color: #333333;
        line-height: 22px;
        text-decoration: none;
        margin-right: 16px;
        &:hover {
          color: #d52c1a;
        }
      }
    }
    .more {
      flex: 1;
      text-align: right;
      a {
        cursor: pointer;
        text-decoration: none;
        font-size: 16px;
        font-weight: 400;
        color: #333333;
        line-height: 22px;
      }
    }
  }
  .shop-list {
    flex: 1;
    font-size: 0;
    vertical-align: top;
    & div:nth-child(2n + 1) {
      margin-left: 0;
    }
  }
}
</style>
